<template>
	<view style="height: 16px;"> </view>
	<view class="top">
		<view class="text1">
			<view>
				<text>设备名称</text>
			</view>
			<view class="right">
				<image src="../../static/切换.png" mode="aspectFit"></image>
				<text>切换</text>
			</view>
		</view>
		<view class="text2">
			<text>SN：{{information.SN}}</text>
		</view>
	</view>
	<view class="center">
		<text>流量卡实名认证</text>
		<view class="image">
			<view class="box">
				<view class="istext">
					<text>中国电信卡</text>
					<view class="verified" v-if="query" style="background-color: #39B54A;">
						<image src="../../static/认证.png" mode="aspectFit"></image>
						<text>已认证</text>
					</view>
					<view class="verified" v-else @click="query=true">
						<image src="../../static/刷新.png" mode="aspectFit"></image>
					</view>
				</view>
				<view style="font-size: 12px;">
					<text>(编号：{{information.number}})</text>
				</view>
			</view>
		</view>
	</view>
	<view class="button" @click="query=true">
		<text>同步实名状态</text>
	</view>
	<view class="bottom">
		<text style="font-weight: bold;">温馨提示</text>
		<view class="text">
			<view>
				<text>1、工信部《电话用户真实身份信息登记规定》中 规定，卡与使用人一一对应，必须办理 实际使用人的实名登记，未实名流量卡将依法 停止通信服务。</text>
				<text style="color: red;">您的实名资料信息将直接上传 国家工信部系统，请不用担心信息安全泄露问题。</text>
			</view>
			<view class="box">
				<text>2、实名认证运营商需进行审核，审核期间网络 暂不可用。</text>
				<text>3、审核过后请重启设备，若设备网络不可用， 请联系客服。</text>
				<text>4、若实名状态未同步，请点击下方按钮进行实 名状态同步。</text>
			</view>

		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	const information = ref({
		SN: '12345678910',
		number: '114514'
	})
	const query = ref(false)
</script>

<style lang="scss" scoped>
	body {
		background-color: #F5F6FA;
	}

	.top {
		background-color: white;
		border-radius: 10px;
		padding: 24px 16px;
		margin: 0 16px 16px 16px;
		font-size: 14px;

		.text1 {
			display: flex;
			justify-content: space-between;

			.right {
				color: #707070;
				display: flex;
				align-items: center;

				image {
					width: 16px;
					height: 16px;
				}
			}
		}

		.text2 {
			margin-top: 10px;
			color: #707070;
		}
	}

	.center {
		margin: 0 16px;
		color: #707070;

		.image {
			width: 100%;
			height: 35vw;
			background-image: url('https://mp.hltx.net/static/images/shm01.png');
			background-repeat: no-repeat;
			background-size: contain;
			background-position: bottom;
			display: flex;
			align-items: center;

			.box {
				color: white;
				margin-left: 8vw;

				.istext {
					font-size: 18px;
					display: flex;
					align-items: center;

					.verified {
						margin-left: 12px;
						height: 21.5px;
						font-size: 12px;
						display: flex;
						align-items: center;
						padding-right: 6px;

						image {
							width: 14px;
							height: 14px;
							padding: 0 3px;
						}
					}
				}
			}
		}
	}

	.button {
		margin: 16px;
		background-color: #204697;
		font-size: 16px;
		font-weight: bold;
		color: white;
		text-align: center;
		padding: 15px 0;
		border-radius: 10vh;
	}

	.bottom {
		margin: 16px;
		border-radius: 10px;
		padding: 16px 19px 17px;
		background-color: white;

		.text {
			font-size: 15px;

			text {
				line-height: 1.8;
			}

			.box {
				text {
					display: block;
				}
			}
		}
	}
</style>